import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 九九乘法表
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-07-30  14:08
 */
public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        for (int i = 1; i <= num ; i++) {
            for (int j = 1; j <= i ; j++) {
                System.out.print(j + "*" + i + "=" + i*j);
                System.out.print(" ");
            }
            System.out.println();
        }
    }
}
